package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;


/**
 * 字体信息对象 danmo_font_generate
 *
 * @author yangle
 * @date 2024-09-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoFontGenerate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 字体图片id */
    private Long id;

    /** 字体图片 */
    @Excel(name = "字体图片")
    private String fontPicture;

    /** 生成字体id */
    @Excel(name = "生成字体id")
    private Long fontTypeId;

    /** 字体 */
    @Excel(name = "字体")
    private String font;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 字名 */
    @Excel(name = "字名")
    private String fontName;

    /** 翻转 */
    @Excel(name = "翻转")
    private Long tarnstram;

    /** 宽度 */
    @Excel(name = "宽度")
    private String width;

    /** 高度 */
    @Excel(name = "高度")
    private String high;
    /** x */
    @Excel(name = "x")
    private Integer x;
    /** y */
    @Excel(name = "y")
    private Integer y;

    @Excel(name = "svg_url")
    private String svgUrl;
    /**
     * vip
     */
    @Excel(name = "vip")
    private String vip;

    /** 字体类型信息 */
    private List<DanmoFontType> danmoFontTypeList;

    private Integer pageNum = 1;
    private Integer pageSize = 10;

    private String fontTypeName;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fontPicture", getFontPicture())
            .append("fontTypeId", getFontTypeId())
            .append("font", getFont())
            .append("author", getAuthor())
            .append("fontName", getFontName())
            .append("tarnstram", getTarnstram())
            .append("width", getWidth())
            .append("high", getHigh())
            .append("svgUrl", getSvgUrl())
            .append("vip", getVip())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("updateTime", getUpdateTime())
            .append("danmoFontTypeList", getDanmoFontTypeList())
            .toString();
    }
}
